

/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2014 All Rights Reserved.
 */
package com.alipay.constants;

import com.sinovatech.common.config.GlobalConfig;

/**
 * 支付宝服务窗环境常量（demo中常量只是参考，需要修改成自己的常量值）
 * 
 * @author taixu.zqq
 * @version $Id: AlipayServiceConstants.java, v 0.1 2014年7月24日 下午4:33:49 taixu.zqq Exp $
 */
public class AlipayServiceEnvConstants {

    /**支付宝公钥-从支付宝服务窗获取*/
    //移动支付公钥
    public static final String ALIPAY_PUBLIC_KEY_APP = GlobalConfig.getProperty("alipay","ALIPAY_PUBLIC_KEY_APP");
    //扫码付公钥
    public static final String ALIPAY_PUBLIC_KEY = GlobalConfig.getProperty("alipay","ALIPAY_PUBLIC_KEY");

    /**签名编码-视支付宝服务窗要求*/
    public static final String SIGN_CHARSET      = "utf-8";

    /**字符编码-传递给支付宝的数据编码*/
    public static final String CHARSET           = "utf-8";

    /**签名类型-视支付宝服务窗要求*/
    public static final String SIGN_TYPE         = "RSA2";
    
    public static final String SELLER_ID         = GlobalConfig.getProperty("alipay","SELLER_ID");
    
    public static final String PARTNER           = GlobalConfig.getProperty("alipay","PARTNER");

    /** 服务窗appId  */
    //TODO !!!! 注：该appId必须设为开发者自己的服务窗id  这里只是个测试id
    public static final String APP_ID            = GlobalConfig.getProperty("alipay","APP_ID");

    //开发者请使用openssl生成的密钥替换此处  请看文档：https://fuwu.alipay.com/platform/doc.htm#2-1接入指南
    //TODO !!!! 注：该私钥为测试账号私钥  开发者必须设置自己的私钥 , 否则会存在安全隐患 
    public static final String PRIVATE_KEY       = GlobalConfig.getProperty("alipay","PRIVATE_KEY");

    //TODO !!!! 注：该公钥为测试账号公钥  开发者必须设置自己的公钥 ,否则会存在安全隐患
    public static final String PUBLIC_KEY        = GlobalConfig.getProperty("alipay","PUBLIC_KEY");
    
  //TODO !!!! 注：该公钥为测试账号公钥  开发者必须设置自己的公钥 ,否则会存在安全隐患
    public static final String ZFB_PUBLIC_KEY        = GlobalConfig.getProperty("alipay","ZFB_PUBLIC_KEY");

    /**支付宝网关*/
    public static final String ALIPAY_GATEWAY    = "https://openapi.alipay.com/gateway.do";

    /**授权访问令牌的授权类型*/
    public static final String GRANT_TYPE        = "authorization_code";
    
    public static final String NOTIFY_URL = GlobalConfig.getProperty("alipay","NOTIFY_URL");
}